package com.zst.http.forward.configuration;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ForwardServerProperties {
    /**
     * 是否启用
     */
    private boolean enable = true;
    /**
     * 监听端口
     */
    private int port = 8333;
    /**
     * io线程数
     */
    private int acceptThreads = 2;
    /**
     * worker线程数
     */
    private int workerThreads = Runtime.getRuntime().availableProcessors() / 2;
    /**
     * 最大请求体大小
     */
    private int maxBodySize = 4 * 1024 * 1024;
}

